public class Person {
    public String name;
    public int age;
    public String type = "唱歌";

    public Person() {

    }

    public Person(String name) {
        this(name, 0);// 调用了其他的构造方法


    }

    public Person(int age) {
        this(null, age);
    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void say() {
        System.out.println("说话");
        eat();
    }

    public void eat() {
        System.out.println("吃饭");
    }

    public void show(String type) {
        System.out.println(type);
        System.out.println(this.type);
    }


    // 掉血
    public void downHp(int atk) {
    }
}
